﻿@using Journal.Common.Helpers
@model Journal.Admin.Presentation.Models.UserModels.UserEditModel
@{
    Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="infobox">
    <div id="entityTypeMenu">
        <h3 class="entityTypeMenuHeader">
            <span>Add User</span>
            <br />
        </h3>
    </div>
    @{ Html.BeginForm("Save", "User", FormMethod.Post); }
    <div class="selectTable">
        @Html.HiddenFor(m => m.Id)
        @Html.FormInputTextRow(m => m.Login)
        @Html.FormInputTextRow(m => m.Password)
        @Html.FormInputTextRow(m => m.Email)
        @Html.FormInputDateField(m => m.DateBirth, new {@class = "datepicker"})
        @Html.FormInputTextRow(m => m.Name)
        @Html.FormInputTextRow(m => m.Surname)
        @Html.FormInputDropDown(m => m.GenderId, Model.GenderTypeses)
@*        @Html.FormInputDropDown(m => m.Roles, Model.Roles)*@
        @Html.FormInputSubmit("Save")
    </div>
    @{Html.EndForm();}
</div>

